package com.qfjy.controller;

import com.qfjy.service.VideoInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName VideoInfoController
 * @Description TODO
 * @Author guoweixin
 * @Date 2022/10/18
 * @Version 1.0
 */
@Controller
@Slf4j
@RequestMapping("videoInfo")
public class VideoInfoController {

    @Autowired
    private VideoInfoService videoInfoService;

    @GetMapping("selectVideoInfo")
    @ResponseBody
    public String selectVideoInfobyPcode(@RequestParam("pcode") String pcode){

       String result= videoInfoService.selectVideoInfoByPcode(pcode);
        log.info("查询找是视频微服务数据结果：{}",result);
        return  result;
    }
}
